@extends("admin.layout.main")

@section("content")
    <div id="app">



    </div>
    <script src="/js/layer/layer.js"></script>
    <script src="/js/vue.js"></script>
    <script  src="/js/iview.js"></script>
    <script  src="/js/axios.min.js"></script>
    <script src="/js/common.js"></script>
    <script>
        let vm = new Vue({
            el: '#app',
            data() {
                return {
                    token:'',
                    tableData: [],
                    tableColumns: [
                        {
                            title: '店铺名',
                            key: 'shop_name',
                        },


                    ],
                    spinShow:false,

                    page: {
                        total: 0,
                        current: 1,
                        pageSize: 50,
                    }



                }
            },
            mounted(){

                this.$Message.config({
                    top: 90,
                    duration: 3
                });
            },

            methods: {
                orderList(page = 1) {
                    let that = this;
                    this.spinShow = true;
                    axios.get("/admin/order/user/rate",{
                        params: {
                            token:vm.token,

                        }
                    })
                        .then(function (response) {
                            vm.tableData = response.data.result.list.data;
                            vm.page.total = response.data.result.list.total;
                            vm.page.current = response.data.result.list.current_page;
                            vm.page.pageSize = response.data.result.list.per_page;
                            vm.card  =   response.data.result.compare;
                            vm.tip = response.data.result.tip;
                            that.spinShow = false;
                        });
                }


            },

        });

        vm.token = getToken();
        vm.userList(1);


    </script>

@endsection

